package com.cloud.demo.models.bus.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName bus_order_detailed
 */
@TableName(value ="bus_order_detailed")
@Data
@Schema(name = "订单明细")
public class BusOrderDetailed implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @Schema(description = "订单id" )
    private String orderId;

    /**
     * 纸箱等级
     */
    @Schema(description = "纸箱等级" )
    private String cartonGrade;

    /**
     * 状态-已上传文件
     */
    @Schema(description = "状态，（支付，生产，完成）" )
    private Integer state;

    /**
     * 支付
     */
    @Schema(description = "支付" )
    private BigDecimal pay;

    /**
     * 
     */
    @Schema(description = "客户id" )
    private Long clineId;

    /**
     * 
     */
    @Schema(description = "销售id" )
    private Long saleId;

    /**
     * 品牌
     */
    @Schema(description = "客户牌子" )
    private String brand;
    /**
     * 部门
     */
    @Schema(description = "部门id" )
    private Long deptId;

    /**
     * 没有文件上传即使用默认说明书
     */
    @Schema(description = "安装说明书文件" )
    private byte[] instructionFile;

    /**
     * 版面要求
     */
    @Schema(description = "纸箱版面文件" )
    private byte[] printFile;

    @TableField(exist = false)
    @Schema(description = "produce产品集合")
    private List<BusOrder> busOrderList;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}